package com.spring.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @author 应癫
 */
public class DruidUtils {

    private DruidUtils() {
    }

    private static final DruidDataSource druidDataSource = new DruidDataSource();

    static {
        druidDataSource.setDriverClassName("org.postgresql.Driver");
        druidDataSource.setUrl("jdbc:postgresql://localhost:5432/user_center");
        druidDataSource.setUsername("postgres");
        druidDataSource.setPassword("123456");
    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }
}
